home *** CD-ROM | disk | FTP | other *** search
/ Hottest 6 / Hottest 6 (1996)(PDSoft)[!].iso / software / fredfish / 1022.lha / Programs / DataMasterDEMO / DataMasterManual < prev    next >
Text File  |  1994-10-23  |  67KB  |  1,544 lines

  1.  
  2. ----------------------------------------------------------------------
  3. ----------------------------------------------------------------------
  4. -----                                                            -----
  5. -----                                                            -----
  6. -----                                                            -----
  7. -----                  TS Data Master - Manual                   -----
  8. -----                                                            -----
  9. -----                                                            -----
  10. -----                                                            -----
  11. ----------------------------------------------------------------------
  12. ----------------------------------------------------------------------
  13.  
  14. TS Data Master - Manual (for Version 1.01 04.07.1994)
  15. © 1993, 1994 Teemu Sipilä
  16. All rights reserved  
  17.  
  18. Address:
  19. Teemu Sipilä
  20. Koskitie 25
  21. FIN-12380 Leppäkoski
  22. Finland
  23.  
  24. Email: Teemu.Sipila@hut.fi
  25.  
  26. 1. What is Data Master?
  27. ----------------------------------------------------------------------
  28.  
  29. 1.1. Data Master
  30. ----------------
  31.  
  32.     Data Master is a database program programmed for Amiga computers.
  33. It's not the best database program for Amiga (the best shareware data-
  34. base program??), but it's cheap and specially made for the average
  35. user.
  36.     In the program there are five different field types which are
  37. string (text), integer, floating point, type (selection) and boolean
  38. field types. In one record can be up to 256 different fields and the
  39. number of records is practically limited only by the size of the free
  40. memory. Records can be sorted based on eight key fields.
  41.     You can search from the database those records which match search
  42. patterns given by the user (for example, all records whose first 
  43. field's first letter is A). You can also search for text strings from
  44. the whole database. Using Data Master it's possible to print the data-
  45. base for printer or save it as an ASCII file to the disk. Number
  46. fields can be displayed on the screen as graphic diagrams, and using
  47. this function you can simply compare records. There is a separate
  48. field editor for the creating of the fields. Records can be, of
  49. course, moved, copied, deleted or cleared as a single record or as
  50. a block which includes many records. 
  51.     In the following table there are some maximum values used by the
  52. program.
  53.  
  54.  The number of records            99999 (memory limits also)
  55.  The number of fields             256
  56.  The number of alternative texts  256
  57.   (type fields)          
  58.  The length of the field title    13
  59.  The length of the string field   255
  60.  The length of the unit string    9
  61.  The number of key fields         8
  62.  
  63. 1.2. Amiga system
  64. -----------------
  65.  
  66.     Data Master works fine also in the basic Amiga-system (Amiga 500
  67. with KickStart 1.3), it's true, but when using the program with Kick-
  68. Start 1.3, there isn't a file requester. Data Master can be used also
  69. in the NTSC machines, even if, the screen size is smaller than in the 
  70. PAL machines.
  71.     The program is tested in a few different Amiga systems, but the
  72. most of the testing is done by using Amiga 2000 and KickStart 2.0, so
  73. there can be small bugs in other systems. In addition there is, at
  74. this time, one general bug the reason of which is unknown. The program
  75. may cause a guru, if you enter 'ram:' to the directory in the file
  76. requester. 
  77.  
  78.  
  79. 2. Database terms
  80. ----------------------------------------------------------------------
  81.  
  82. 2.1. Basics
  83. -----------
  84.  
  85.     A database includes many records or cards. For example, we can
  86. imagine a address database which includes information about person's
  87. name, address, age and phone number. This entity is a database or
  88. a register. In the database there are records, and for every person
  89. there is it's own record. A record includes fields which are having
  90. different kind of information about the person. In this example the 
  91. fields are person's name, address, age and phone number.   
  92.  
  93. 2.2. Field types
  94. ----------------
  95.  
  96.     Let's look the following example database:
  97.  
  98. NAME:      Mark             
  99. AGE:       22
  100. AGE GROUP: Young
  101. SEX:       Male
  102. WEIGHT:    78.2 kg
  103.  
  104. NAME:      Joanna
  105. AGE:       11
  106. AGE GROUP: Child
  107. SEX:       Female
  108. WEIGHT:    45.5 kg
  109.  
  110. NAME:      Hugo        Field type: String (or text)
  111. AGE:       67                      Integer 
  112. AGE GROUP: Old                     Type (selection)
  113. SEX:       Male                    Boolean  
  114. WEIGHT:    67.0                    Float (floating point number)
  115.  
  116.     In this example there are five fields of different type in one
  117. record. The first field, NAME, is a string field (or text field) which
  118. contains ASCII text.
  119.     The next field, AGE, is a integer number field which can have a
  120. value ranging from -2 147 483 648 to 2 147 483 647. The last field,
  121. WEIGTH, is a floating point number field and it differs from the 
  122. integer field in a fact that the floating point number can contain
  123. also desimals. Note that when using floating point numbers and the
  124. number is big or it has many desimals, the number isn't very accurate.
  125. For example, if you type a number 3344.5566, the program 'rounds' it
  126. to be 3344.556641.
  127.     The third field of the record is called AGE GROUP and it is a type
  128. field (same as a selection field). When you define fields, you have to
  129. give the specific number of alternative texts from which the user 
  130. selects the best one when editing the database. In the example
  131. alternative texts are child, young, adult and old. Using this field
  132. type makes it easier to edit the database, because you have to just
  133. select the best text and you don't have to write the same text many
  134. times. Also if the database is large, using type fields saves memory
  135. and disk space. 
  136.     Nearly the same field type is also a boolean field type which is
  137. the type of the fourth field, SEX. For the boolean field you have to
  138. determine two alternative text from which other one is 'on' and the
  139. other is 'off'. 
  140.  
  141. 2.3. Main field and key fields
  142. ------------------------------
  143.  
  144.     One of the fields, usually the first, is set to be the main field 
  145. of the record. This field can be though as the title of the record.
  146. In our example the main field is naturally NAME. 
  147.    If you want to sort records for alphabetic order, you have to first
  148. set key field(s) which are used by the sort function. For example, if
  149. you want to sort the example database for order on the age, you set
  150. the AGE field to be the key field #1. If there are persons with the
  151. same age, you can set the NAME field to be the key field #2, and then
  152. those persons' mutual order is determined by the alphabetic order of
  153. the names of the persons.
  154.      
  155. 2.4. Field title, explonation and data
  156. --------------------------------------
  157.  
  158.     We can think a field as three different parts which are the field 
  159. title, the field explonation and the field data. In the example data-
  160. base NAME, AGE, AGE GROUP, SEX and WEIGHT are, of course, field 
  161. titles. The field data contains the value of the number field or the
  162. text string of the string field. If you want, you can attach an
  163. explonation to the field. The field explonation should give more
  164. information about the field. For the number field you can also give an
  165. unit which is displayed after the field data on the screen. 
  166.  
  167.  
  168. 3. The user interface
  169. ----------------------------------------------------------------------
  170.  
  171. 3.1. The screen
  172. ---------------
  173.  
  174.     The screen is divided into two parts nearly in the whole program.
  175. These parts are called the message window and the work window. In 
  176. addition many functions open a smaller window above the main screen.
  177.     At the top of the screen there is the message window, and the
  178. program displays messages and questions for the user there. Questions
  179. can be answered depending on the type of the question by ok/no-answer,
  180. by a number or by a text string. Generally you can use also keyboard
  181. for answering. By pressing the <ESC> key you can answer negatively or
  182. cancel the command given earlier. Respectively with the <ENTER> key
  183. you can give a positive answer. If the question asks for a number, you
  184. can reduce and increase the number using the Cursor Left (-) and the
  185. Cursor Right (+) keys.
  186.     In the main program the message window contains also information
  187. about the database, like the current record and the current field.
  188. There are also some gadgets which can be used for moving from one
  189. record to another. 
  190.     The bottom window is called the work window and it is used for
  191. editing records and fields. In the main program there are all fields
  192. of one record and in the field editor there are definition data of one
  193. field. The Diagram function uses this window for showing the diagrams.
  194.  
  195. 3.2. The message window 
  196. -----------------------
  197.     
  198.     In the main program there are two lines of text in the message
  199. window. The lines are displayed as follows:    
  200.  
  201.  Recs: 120 of 230  Flds: 21  B: 26 to 42
  202.  Rec:  4  -  Matching  Fld: 5 - String - KF2 
  203.  
  204.     Two first numbers in the top line tell the number of records. The
  205. latter of these shows the real number and the first one the number of 
  206. available records. As a rule they are equal, but if searhing for the 
  207. record is used, the first number becomes smaller showing the number of
  208. those records which match the search criteria.
  209.     The third number tells the number of fields in one record. The
  210. next two numbers tell the first and the last record of the possible
  211. block. 
  212.     The first section ('Rec: X - Matching') in the bottom line tells
  213. the current record number and information about that, if the record is
  214. matching or unmatching record, when searching is used. If the record
  215. is matching, there is displayed the text 'Matching', and otherwise the
  216. text 'Unmatching' after the record number.
  217.     The rest of the bottom line give information about the current
  218. field. The number in this section shows the current field number and
  219. the text after it tells the field type. At last there is the key field
  220. number ('KFx', where x is ranging from 1 to 8) which is showed only
  221. with the key fields.
  222.  
  223. 3.3. Gadgets of the message window
  224. ----------------------------------
  225.  
  226.     The commands are given in the main program as menu commands which
  227. are explained in the following chapters. There are also 11 arrow
  228. gadgets in the message window in the main program. These gadgets can
  229. be used for moving from one record to another or from one field to
  230. another. They are showed as coarse-featured figures below. 
  231.  
  232.   |<    <<    <    <>    >    >>    >|    H    U    D    E
  233.  
  234.     For every gadget, excluding << and >>, there is also it's own key-
  235. board shortcut which is usable from the Numeric Key pad. In the
  236. following text the gadgets and their shortcuts are explained (first
  237. gadget, then the shortcut, and at last the explonation).
  238.  
  239.   |<    the Numeric Keypad 7  - Go to the first record
  240.   <<                          - Rewind
  241.   <                     NK 4  - Go to the previous record
  242.   <>                    NK 5  - Asks where to go
  243.   >                     NK 6  - Go to the next record
  244.   >>                          - Forward
  245.   >|                    NK 1  - Go to the last record
  246.   H                     NK 9  - Go to the first field      
  247.   U      Cursor Key Up, NK 8  - Go to the previous field 
  248.   D    Cursor Key Down, NK 2  - Go to the next field 
  249.   E                     NK 3  - Go to the last field      
  250.    
  251.     At the left side of the window there is a lift gadget which is
  252. used to scroll the fields when there isn't enough room for all fields
  253. in the same time. 
  254.  
  255.  
  256. 4. Getting started
  257. ------------------
  258.  
  259. 4.1. Running the program
  260. ------------------------
  261.  
  262.     Data Master can be called simply with a double-click when the
  263. mouse pointer is above the icon of Data Master. If you are using
  264. AmigaShell or something like that, you can call the program by opening
  265. the right drawer and running Data Master. For example, as follows:
  266.  
  267.        (stack 32768 <ENTER> (if the program don't work, try this))
  268.        cd DF0:DataMasterDrawer <ENTER> 
  269.        (run) DataMaster <ENTER> 
  270.  
  271.     Then the program opens a window on which the copyright texts are
  272. told with the program version and the registered user. You can go on
  273. by pressing any key.
  274.  
  275. 4.2. Testing
  276. ------------
  277.  
  278.     There are some example data files in the original Data Master 
  279. packet. If you are using the Data Master first time, run the program
  280. as it was told in the part 4.1. Then select the Load Database Menuitem
  281. from the Project Menu. Now you get a list of files in the same drawer
  282. with Data Master. Open the drawer 'Data', and select one of the files
  283. with the '.tdb' identification by pressing two times with the Left
  284. Mouse Button on the filename. After the program has succesfully loaded
  285. the file, you can move in the database by using, for example, the
  286. Arrow Gadgets and the Numeric Keypad.     
  287.  
  288.  
  289. 5. Editing the field data
  290. ----------------------------------------------------------------------
  291.  
  292. 5.1. Basics
  293. -----------
  294.  
  295.     One of the fields showed on the screen is either activated or in 
  296. editing-state. The activated field (the same as the current field)
  297. differs from the others in the fact that the field title is coloured
  298. with white instead of black. Besides this the field number of the
  299. acivated field is showed in the message window. Activation is made by
  300. pressing the Mouse Button on the title of the field or by using the
  301. Arrow Gadgets, the Numeric Keypad or the Cursor Keys.
  302.     One of the fields can also be in editing-state. The title of this
  303. field is coloured with blue. When a field is in editing-state, the
  304. user can change the field data. If you want the field to editing-
  305. state, you have to press the <ENTER> key or press the Mouse Button
  306. on the title of the activated field or on the field data of any field.
  307.  
  308. 5.2. String field
  309. -----------------
  310.  
  311.     If the string field is in editing-state, there is a string gadget
  312. on the place of the field data. Now by changing the string in the 
  313. gadget and by pressing <ENTER> (this is vital), you can change the
  314. field data. 
  315.     When a string field is not in editing-state (but is activated) and
  316. the length of the field data is bigger than the number of columns, you
  317. can scroll the field data using the Cursor Left and the Cursor Right
  318. keys. If it's so, the last letter showed on the screen is coloured
  319. with blue.
  320.  
  321. 5.3. Integer and float fields
  322. -----------------------------
  323.  
  324.     Changing the value of a integer or a floating point field is made
  325. in the same way as changing the data of a string field.
  326.     This can also be done in the other way. First you have to activate
  327. a field. Now by using the Cursor Left and the Cursor Right keys you
  328. can decrease or increase the value of the field. The value is altered
  329. as much as the step value is showing. The step value can be one of the
  330. following values: 1, 10, 100, 1000, 10000, 100 000, 1000 000, 
  331. 10 000 000 or 100 000 000 (for floating point fields also 0.1, 0.01,
  332. 0.001, etc.).
  333.     The step value is set by selecting the Set Step Size Menuitem or 
  334. with the Numeric Keys (not the Numeric Keypad). The menu command asks
  335. for the new value on the message window. This value must be given as
  336. an exponent (for example, if you give 3, the step value will be 10e3=
  337. 1000). Respectively, if you press any Numeric Key from 0 to 8, the
  338. step value will be 10 powered by the corresponding number. If you
  339. press <SHIFT> and any of the Numeric Keys, the step value of float
  340. fields will be 10 powered by minus the corresponding number. Note that
  341. if you want the step value to be 1, press 0 (10e0 = 1). 
  342.      
  343. 5.4. Type and boolean fields
  344. ----------------------------
  345.  
  346.     Altering the data of the type or boolean field can be made in two
  347. ways. The easiest way is to use the Cursor Left and the Cursor Right
  348. keys to select the alternative text, when a field is activated (not in
  349. editing-state).
  350.     If the field is in editing-state, there is a list of the alter-
  351. natives on the place of the field data. Now you can scroll the list
  352. by using the Cursor Left and the Cursor Right keys. You can select a
  353. new alternative text by pressing <ENTER> or by pressing the Left Mouse
  354. Button, when the pointer is pointing to the text in question. 
  355.  
  356. 6. Handling records
  357. ----------------------------------------------------------------------
  358.  
  359. 6.1. Basics
  360. -----------
  361.  
  362.     You can move between records by using the Numeric Key Pad and the
  363. Arrow Gadgets. The commands for handling records can be called from
  364. the Edit and the Block Menus. The Edit Menu includes commands usable
  365. for handling a single record and the Block Menu commands for handling 
  366. record blocks. The commands in the Block Menu are quite simiral to 
  367. those in the Edit Menu, so only the Edit Menu is explained here 
  368. completly.
  369.  
  370. 6.2. Insert
  371. -----------
  372.  
  373.     By using this command you can add a new record between old
  374. records. The number of the records will be then increased by one and
  375. the record number of the new record is same as the record number of
  376. the old current record.
  377.  
  378. 6.3. Delete
  379. -----------
  380.  
  381.     The Delete Menuitem should be called if you want to delete the 
  382. current record. After the command is called, the number of the records
  383. is reduced by one and you can't get the deleted record back in any
  384. way.
  385.  
  386. 6.4. Change
  387. -----------
  388.  
  389.     This function asks at first for the record number of the record
  390. with which the current record will be changed. After this, the places
  391. of these two records will be changed together.
  392.  
  393. 6.5. Move
  394. ---------
  395.  
  396.     This command asks for the place where the current record should be
  397. moved. Then the current record will be moved to the new place and it 
  398. will be deleted from the old place. Note that by using this function
  399. you can't delete any record, just the order of the records is changed.      
  400.    
  401. 6.6. Copy
  402. ---------
  403.  
  404.     This function can be used for copying the field data of the
  405. current record to another record whose number is asked by the
  406. function. Note that the field data of the target record are deleted.
  407.  
  408. 6.7. Clear
  409. ----------
  410.  
  411.     If you select the Clear Menuitem, all fields of the current 
  412. record are cleared. The field data of a string field is totally
  413. deleted and the value of a number field is set to zero (or to the
  414. minimum or to the maximum value). The field data of a type field or a
  415. boolean field is set to point at the first alternative text.
  416.  
  417. 6.8. Number of Records
  418. ----------------------
  419.  
  420.     This command asks for the new number of records. If the new number
  421. is smaller than the old, some records are deleted. If the number of
  422. the records has been increased, all new records are cleared in the
  423. same way as the Clear function does.
  424.  
  425. 6.9. Delete Unedited Records
  426. ----------------------------
  427.  
  428.     This function deletes all those records which are not edited by
  429. the user after the memory allocation or after the use of the Clear
  430. function.
  431.  
  432. 6.10. The Block Menu
  433. -------------------- 
  434.  
  435.     The block can be marked or unmarked by using the two first menu-
  436. items in the Block Menu. The Mark Block function sets the first and
  437. the last record of the block. When it is called first time, the
  438. function sets the current record to be the first record of the block.
  439. Respectively at next time the current record becomes the last record
  440. of the block. If the Clear Block Menuitem is selected, the block is
  441. unmarked.  
  442.     When the block is correctly marked, the user can use also the
  443. other functions located in the Block Menu. These commands are nearly
  444. simiral to the functions located in the Edit Menu and they differ from
  445. the Edit Menu functions in the fact that they affects for the record
  446. block insted of a single record. When using these functions, remember
  447. that if the block is copied, moved or changed with another block, any 
  448. record of the target block is allowed to be inside the source block.
  449.  
  450.  
  451. 7. Sorting and searching
  452. ------------------------
  453.  
  454. 7.1. Sorting
  455. ------------
  456.  
  457.     If you want to sort the records in alphabetic order, you have to
  458. set the key fields before sorting. Based on these fields the program
  459. then sorts the database. The key fields can be set by using the Set
  460. Key Fields command in the Special Menu. At first it asks for the
  461. number of the key fields which can range from zero to eight. Then the
  462. function asks the field number of every key field.
  463.     After the key fields are defined, you can sort the records by
  464. using the Sort Incremental Menuitem or the Sort Decremental Menuitem.
  465. The first one sorts the database in alphabetic order and the latter in
  466. inversed alphabetic order.
  467.  
  468. 7.2. Searching for the specified record
  469. ---------------------------------------
  470.  
  471. 7.2.1. Edit Search Criteria (Filter)
  472. - - - - - - - - - - - - - - - - - - -
  473.  
  474.     If you want to search for the specified record from the database,
  475. you have to at first define the search criteria (in this manual the 
  476. search patterns means the same as the search criteria). The user can
  477. define the criteria for all fields, but it's enough if a criterion is
  478. defined at least for one field. This can be done with the Edit Search
  479. Criteria function callable from the Search Menu.          
  480.     This function opens a screen whose work window is used for showing
  481. the field titles and the search patterns. With the field title in the
  482. same line there is a corresponding search pattern.
  483.     You can clear the search criteria by clicking on the Clear Gadget
  484. or the ClearAll Gadget. If there are more fields than rows in the work
  485. window, the fields can be scrolled with the Lift Gadget placed at the
  486. left side of the message window. When the search patterns are ready,
  487. you can approve the criteria by clicking the OK Gadget. If you want to
  488. cancel the patterns, click on the Cancel Gadget.     
  489.     The search criteria are different depending on the type of the
  490. field. The criteria of the number fields are simple mathematical
  491. formulas and the criteria of other fields are mixed text and wild
  492. cards.  
  493.  
  494. 7.2.2. The search criteria of string, type and boolean fields
  495. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  496.  
  497. In the following table is a list of the wild cards:
  498.  
  499.      *          = any character or any string or nothing
  500.      ?          = any character
  501.      ~          = anything but
  502.      [abc]      = any character of a, b and c
  503.      (aa|bb|cc) = any string of aa, bb and cc
  504.                   (| (or) = <SHIFT> + <\> in the keyboard)     
  505.  
  506.     A search pattern can contain ordinary text and besides text many
  507. kind of combinations of the wild cards. The Wild card ~ can be
  508. attached to the two lowest wild cards. This means that ~[abc] is a
  509. possible combination, and it matches any character that is not a, b or
  510. c. If you are using the combination ~(aa|bb|cc), remember that the
  511. lengths of aa, bb and cc must be same. Note also that after * there
  512. can't be any of the following wild cards: *, ?, ~. Below is showed
  513. example search patterns and fields which match or not match the
  514. criteria.
  515.  
  516.  CRITERION         MATCH                    DO NOT MATCH
  517.  ---------------------------------------------------------------------
  518.  *house            The red house            Red houses
  519.                    house                    house is beautiful 
  520.  C*r               Computer                 In Computer
  521.  ?isk              Disk                     A Disk             
  522.                    disk                     isk
  523.  [MD]ark           Mark                     Bark
  524.                    Dark                     MDark
  525.  (one|three)       one                      onethree
  526.                    three                    tone
  527.  ~[ab]             c                        a
  528.                    g                        b
  529.                    t                        cg
  530.  ~(NIGH|righ)t     abcdt                    right
  531.                    night                    NIGHT
  532.                    fight                    fit
  533.  
  534. 7.2.3. The search criteria of integer and float fields
  535. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  536.  
  537.     The criteria of a number field are simple mathematical formulas.
  538. Note that in these formulas you can't use paranthesis'. Remember also
  539. that some of the operators need only and just only one argument
  540. number, but the others need respectively two arguments. Available 
  541. operators are in the following list:
  542.  
  543.     = x      equal to x
  544.     > x      greater than x
  545.     >= x     greater than or equal to x
  546.     < x      lower than x
  547.     <= x     lower than or equal to x
  548.     x << y   greater than x and lower than y
  549.     x <=< y  greater than x and lower than y or equal to x or equal
  550.              to y
  551.     x >> y   lower than x or greater than y
  552.     x >=> y  lower than x or greater than y or equal to x or equal
  553.              to y
  554.     |        or     
  555.  
  556.     Below is showed numbers between -9 and 9 and some example search
  557. patterns. Those numbers which match are marked with *.
  558.  
  559.                          - - - - - - - - -   + + + + + + + + + 
  560.                          9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9       
  561.  
  562. =-4                                * 
  563. <=-3                     * * * * * * * 
  564. >0 | =-2 | =-8             *           *     * * * * * * * * *     
  565. >=5 | -9<<-5               * * *                     * * * * *   
  566. -3<=<3                               * * * * * * *  
  567. -3>>3                    * * * * * *               * * * * * *
  568. -8>=>8 | 0<=<2 | =-6     * *   *           * * *           * *                                  
  569.      
  570.                          9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9       
  571.                          - - - - - - - - -   + + + + + + + + + 
  572.                      
  573. 7.2.4. Searching functions
  574. - - - - - - - - - - - - - -
  575.  
  576.     After you have defined the search patterns using the Edit Search 
  577. Criteria function, you can separate the matching records from the
  578. others by switching the Show Matching Records Flag in the Search Menu
  579. on. Now you can't look or handle the unmatching records and also the
  580. printing functions ignore those records. Note that when this flag is
  581. on, there are some menu commands that don't work at all. Now if you
  582. want to use all records again, switch the Show Matching Records Flag
  583. off.
  584.     If this flag is on and you have altered the matching records after
  585. switching, you can re-check these records by using the Check Again
  586. command.
  587.     You can inverse the search criteria by selecting the Inverse
  588. Search Criteria Menuitem. After the call of this function, all
  589. matching records become unmatching and vice versa.
  590.     When the search criteria are defined, you can delete all those
  591. records that didn't match the patterns with the Delete Unmatching
  592. Records command.
  593.  
  594. 7.3. Searching for a text string 
  595. --------------------------------
  596.  
  597.     You can also search for a single text string from the database.
  598. This can be done by using the Search String command in the Search
  599. Menu. This function searches all matches of the string starting from
  600. the current field of the current record. After searching, the program
  601. displays that record where the first match was located. If there was 
  602. many matches, you can look for them by using the Search Next String
  603. function.
  604.  
  605.  
  606. 8. Disk operations
  607. ----------------------------------------------------------------------
  608.  
  609. 8.1. File formats
  610. -----------------
  611.  
  612.     The user can create two different kind of data files by using this
  613. database program. The other is used to save the whole database and the
  614. other to save only the field definitions.
  615.     When saving the whole database, the program attach the '.tdb' 
  616. identification to the file name. This file format is not compatible
  617. with any other database file format used by any database program.
  618.     If only the field definitions are saved, the program uses the
  619. '.fld' identification in the file name. Only the Field Editor uses
  620. this file format.
  621.     Besides these two main file formats there are two additional file 
  622. format types. The Save ASCII function and the Form Editor create files
  623. with the '.adb' identification, but these files are actually ordinary
  624. ASCII files. In the Form Editor you can also save the form data by
  625. using the Save Form Data command. The files made by this command have 
  626. the '.form' identification in their names. 
  627.  
  628. 8.2. Load Database
  629. ------------------
  630.  
  631.     All loading and saving functions (if KickStart is 2.0 or greater)
  632. open a window above the main screen. At the middle of the window there
  633. is a box where is a list of files and drawers. With a double-click you
  634. can select a file from the list, and the selected file is then loaded
  635. automatically. At the right side of the box there is the File Lift
  636. Gadget which can be used to scroll files in the box. At the top of the
  637. window there are two string gadgets; in the upper one there is the
  638. title of the drawer and in the lower one the title of the selected
  639. file.
  640.     Below all these there are three command gadgets. By clicking the
  641. Parent Gadget you can move in the root directory one directory back.
  642. If you want to exit the requester without loading anything, press the
  643. Cancel Gadget. To load the file showed in the File String Gadget, you
  644. have to click on the Load Gadget.
  645.     When you are going to load a database from the disk, remember
  646. that you can only load correct files with the '.tdb' identification.
  647. The loading routine itself can be called by selecting the Load
  648. Database Menuitem from the Project Menu. 
  649.     
  650. 8.3. Save Database
  651. ------------------
  652.  
  653.     There are two functions for saving the database in the main
  654. program. The Save Database command, obtainable from the Project Menu,
  655. saves the database using the old filename. If the filename is not 
  656. given, this command is similar to the Save As function.
  657.     The Save As function opens a window familiar with the Load Data-
  658. base function. The only difference is the Load Gadget which is re-
  659. placed with the Save Gadget in the saving routines.  
  660.  
  661. 9. Printing
  662. ----------------------------------------------------------------------
  663.  
  664. 9.1. Show
  665. ---------
  666.  
  667.     If you select the Show Menuitem from the Show Menu, the program
  668. shows the database on the screen one record after another. This
  669. function opens a window where there are six boolean, eight number and
  670. two command gadgets. 
  671.     As it has been mentioned, there are two command gadgets which are
  672. titled OK and Cancel. By clicking the Cancel Gadget the program
  673. returns to the main program and with the OK Gadget the program clears
  674. the screen and shows the database on the whole screen. The database
  675. can be scrolled using the Cursor Keys, the Numeric Keypad and the Left
  676. Mouse Button. You can exit the Show function by pressing the <ESC>
  677. key. The boolean and number gadgets are explained below.
  678.  
  679.  First Record               NUMBER
  680.     The first record which is showed.
  681.  
  682.  Last Record                NUMBER
  683.     The last record which is showed.
  684.  
  685.  First Field                NUMBER
  686.     The first field of every record which is showed.
  687.  
  688.  Last Field                 NUMBER
  689.     The last field of every record which is showed.
  690.  
  691.  Space Record               NUMBER
  692.     The number of empty lines between records.
  693.  
  694.  Space Field                NUMBER
  695.     The number of empty lines between fields.
  696.  
  697.  Max Length                 NUMBER
  698.     The maximum length of one line.
  699.  
  700.  Max Title Len              NUMBER 
  701.     The maximum length of the field title.
  702.  
  703.  Field Title                BOOLEAN FLAG
  704.     Show the field titles.
  705.  
  706.  Field Unit                 BOOLEAN FLAG
  707.     Show the field units.  
  708.  
  709.  Field Number               BOOLEAN FLAG
  710.     Show the field number in the field title.
  711.  
  712.  Record Title               BOOLEAN FLAG
  713.     Show the record title.
  714.  
  715.  Database Title             BOOLEAN FLAG
  716.     Show the database title.
  717.  
  718.  Database Explonation       BOOLEAN FLAG
  719.     Show the field explonation texts at the end.    
  720.  
  721. 9.2. Print
  722. ----------
  723.  
  724.     This function opens a window equal to the window used by the Show
  725. function. After you have set the boolean and number gadgets, you can
  726. start to print by clicking the OK Gadget if the printer is ready for
  727. this. The program uses AmigaDOS for printing, so if you want to change
  728. the Printer Preferences, do it by using Workbench or AmigaDOS.
  729.  
  730. 9.3. Save ASCII
  731. ---------------
  732.  
  733.     With this function you can save the database as an ASCII file. At
  734. first the function opens same kind of window as the Show function. Now
  735. after the OK Gadget is clicked, the program opens a new window which
  736. is a file requester window similar to the window opened by the Save 
  737. Database function. The Save ASCII function creates ASCII files with
  738. the '.adb' identification.
  739.  
  740. 9.4. Diagram
  741. ------------
  742.  
  743.     The Diagram function opens a screen which is used to show the
  744. records as graphic diagrams. At the top of the screen there are five
  745. number, one boolean and one command gadgets. These are explained in
  746. the following text:
  747.  
  748.  Min                        NUMBER
  749.     The miminum value of the scale.
  750.  
  751.  Max                        NUMBER
  752.     The maximum value of the scale.
  753.  
  754.  Step Size                  NUMBER
  755.     The step size of the scale (the default value = (Max-Min)/10).
  756.  
  757.  Title Length               NUMBER
  758.     The maximum length of the record title (= the field data of the
  759.     main field).   
  760.     
  761.  Field                      NUMBER
  762.     The field number of the field used in comparision.
  763.  
  764.  Sort                       SWITCH   
  765.     By clicking on this gadget you can change the sorting status of
  766.     the records (Original Order -> Incremental Sort -> Decremental
  767.     Sort -> Original Order).      
  768.   
  769.  AddNumbs                   BOOLEAN FLAG 
  770.     If this flag is on, the Diagram function shows also the numeric
  771.     value of the field used in comparision.  
  772.  
  773. 9.5. Form Editor
  774. ----------------
  775.  
  776. 9.5.1. The screen
  777. - - - - - - - - - 
  778.  
  779.     This editor can be used for making many kind of forms. The places
  780. of every field's title and data in the form and the length of the
  781. title and data are separately determined by the user. On the basis of
  782. the form data you can show the database on the screen, save it as an
  783. ASCII file or send it to the printer. So we could say, that this
  784. editor is much more advanced than the printing functions located in
  785. the main program.  
  786.     The screen is divided into two parts in the Editor. The upper one
  787. is used for showing and changing the values of the form data. There is
  788. also a lift gadget which can be used to scroll the work window
  789. vertically. You can also scroll it horizontally, which is possibly
  790. with the Cursor Keys and the Numeric Keypad. 
  791.     The messages send by the Editor to the user are displayed on the
  792. screen title bar. When there are no messages, you can see the text
  793. 'ScX: x ScY: y VisW: w VisH: h' on the title bar. Letters x and y in-
  794. dicate the left edge and the top edge of the visible part of the form.
  795. Letters w and h mean the width and the height of the visible part in
  796. characters.
  797.  
  798. 9.5.2. Placing the field in the form
  799. - - - - - - - - - - - - - - - - - - -
  800.  
  801.     At the upper window there are eight number and one boolean gadget
  802. with the lift gadget. The functions of these are explained below.
  803.  
  804.  Field                      NUMBER
  805.     The field number of the field whose location and length of the
  806.     data and the title are displayed.
  807.  
  808.  (Field)                    BOOLEAN FLAG
  809.     (At the left side of the previos gadget)     
  810.     If this flag is on, the current field is a part of the form.
  811.  
  812.  X and Y                    NUMBER
  813.     The coordinates of the field data. These coordinates can also be
  814.     outside that part of the form which is visible (X-max = 255 and
  815.     Y-max = 999).
  816.  
  817.  Width and Height           NUMBER
  818.     The size of the field data. These values can be greater than the
  819.     size of the visible part of the form.
  820.  
  821.  TitleX and TitleY          NUMBER                        
  822.     The coordinates of the field title.
  823.  
  824.  TitleLen
  825.     The maximum length of the field title.
  826.  
  827. 9.5.3. Flags
  828. - - - - - - -
  829.  
  830.     In the Flag Menu there are some boolean flag items and three
  831. command items which are used to change some values. These items are
  832. explained on this part.
  833.  
  834.  Field Unit                 BOOLEAN FLAG
  835.     Show the field units. 
  836.  
  837.  Field Number               BOOLEAN FLAG
  838.     Show the field numbers in the field titles.
  839.  
  840.  Database Title             BOOLEAN FLAG
  841.     Show the database title.
  842.  
  843.  Database Explonation       BOOLEAN FLAG
  844.     Show the database explonation at the end.
  845.  
  846.  Split Words                BOOLEAN FLAG
  847.     If there are more than one line in a string field, you can 
  848.     determine with this flag, if it's permitted to split words to two
  849.     different lines. 
  850.  
  851.  Delete Empty Lines         BOOLEAN FLAG
  852.     Ignore lines which are blank, when printing or showing the data-
  853.     base. This flag don't refer to those empty lines which are ordered
  854.     using the Record Space command.
  855.  
  856.  Field Titles Before Recs   BOOLEAN FLAG
  857.     If this flag is on, the field titles are printed only once and
  858.     before the data of all records. This option can be used to make 
  859.     lists like the following list:
  860.        
  861.        Country:         Population:         Capital:
  862.        
  863.        Finland          4984000             Helsinki
  864.        Sweden           8600000             Stockholm
  865.        Norway           4242000             Oslo   
  866.     
  867.     Load the example database 'EuropeCountries.tdb' and call the Form
  868.     Editor function for more information.  
  869.  
  870.  Set First Record           COMMAND
  871.     This command asks for the record number of the first record which
  872.     should be printed.
  873.  
  874.  Set Last Record            COMMAND
  875.     This function asks for the last record which should be printed. 
  876.  
  877.  Set Record Space           COMMAND
  878.     Asks for the number of empty lines between records.
  879.  
  880. 9.5.4. The Project Menu
  881. - - - - - - - - - - - -
  882.  
  883.     When the form is defined, the user can show the database on the
  884. screen using the Show function placed in the Project Menu. Remember
  885. that when the database is large, it can take quite a long time while
  886. the program is making the print-out. Also large databases need a lot
  887. of memory, and it can be possible, that the showing doesn't work un-
  888. less you make it in smaller parts (by changing the First Record and
  889. the Last Record values).
  890.     If you want to print the database for the printer, select the
  891. Print Menuitem, and the program does this provided that the printer
  892. and AmigaDOS are ready for printing. If you want to change the Printer
  893. Preferences, do it with AmigaDOS.
  894.     The database can be saved as an ASCII file by calling the Save
  895. ASCII function. This function opens a window similar to the window
  896. which is opened by the Save Database function.
  897.     If you select the Save Form Data Menuitem, the program saves the
  898. form data, containing information about the places and sizes of the
  899. fields, to the disk. To the filename is attached the '.form'
  900. identification. Correspondingly you can load a form data file from the
  901. disk using the Load Form Data command.
  902.     The Editor can be leaved by selecting the Exit Menuitem.
  903.    
  904.  
  905. 10. Field Editor
  906. ----------------------------------------------------------------------
  907.  
  908. 10.1. Basics
  909. ------------
  910.  
  911.     When you are making a new database, you have to at first determine 
  912. field definitions. This can be done by using the Field Editor which is
  913. explained in this chapter.
  914.     As mentioned earlier there are five different field types which
  915. are string, integer, float, type and boolean. These are completly de-
  916. scribed in chapter 2.2. In the Editor the user have to determine exact
  917. field definitons which contain field type, title, explonation text,
  918. maximum length of the text, minimum and maximum values, unit and the
  919. alternative texts. However, none of the field types demands all these
  920. information. The maximum number of defined fields is 256, so it should
  921. be enough for larger databases too.   
  922.    
  923. 10.2. The screen and the message window
  924. ---------------------------------------
  925.  
  926.     The screen in the Editor is divided into two part which are the
  927. message window and the definition (work) window. The upper message
  928. window is used for showing the messages sent to the user, and there
  929. are two number gadgets. The definition window contains information
  930. about one field at a time.
  931.     At the bottom of the message window there are two number gadgets
  932. which are titled 'Number of Fields' and 'Field'. The first one of
  933. these tells the number of defined fields. The latter one shows the
  934. field number of the current field whose definitions are displayed at
  935. the definition window.
  936.  
  937. 10.3. Menu commands
  938. -------------------
  939.  
  940.     There are two menus in the Editor. These are the Project Menu and
  941. the Edit Menu. The first one contains general commands, like file
  942. commands, and the latter one functions for handling fields.
  943.     If you want help about the Editor, select the Help Menuitem from
  944. the Project Menu. In the same menu there is the menuitem Load which
  945. activates the loading routine. By using the Save command and the Save
  946. As command you can save the field definitions to the disk as a '.fld' 
  947. file. Both, the Load and the Save As, open a window which is also used
  948. by the file functions of the main program. 
  949.     You can generate and look a list of the fields by calling the Show
  950. Fields function which opens a full-screen window where you can scroll
  951. the list using the Cursor Keys or the Numeric Keypad. Press the <ESC>
  952. key for exit.
  953.     If you are not happy with the field definitions, return to the
  954. main program by selecting the Cancel Menuitem. In the main program
  955. there hasn't happened any changes and you can continue editing the old
  956. database. But if you want to use the field definitions, leave the
  957. Editor by calling the OK command. Now in the main program a new data-
  958. base will be created (however, you can copy the old one to the new
  959. one). 
  960.     With the Delete command, which can be called from the Edit Menu,
  961. you can delete the current field. A new field can be added to the list
  962. by calling the Insert function. The Move function moves the current
  963. field into a new position and the Change function changes the places
  964. of two fields. If you select the Copy Menuitem, the definitions of the
  965. current field are copied to another field. You can clear the 
  966. definitions of one field by using the Clear command, and by calling
  967. the Clear All command this is done for the whole definition table.
  968.     The fields can be sorted for the alphabetic order by calling the 
  969. Sort Incremental function. The same inversed can be done with the Sort
  970. Decremental function. 
  971.  
  972. 10.4. The definition window
  973. ---------------------------
  974.  
  975.     In the lower window there are nine gadgets which contain
  976. information about one field. None of the field types demands all these
  977. gadgets filled, and the title of a gadget is coloured with white when
  978. the corresponding piece of information is necessary and with black
  979. when not. Below are told the functions of all gadgets.
  980.  
  981. <Gadget                     Gadget Type (Field types)>
  982.                       
  983.  Type                       SELECTION (All field types)
  984.     The type of the field can be string, integer, float, type or
  985.     boolean (see chapter 2.2).
  986.  
  987.  Title                      STRING (All field types)
  988.     The title of the field (currently the maximum length is 13 
  989.     characters).
  990.  
  991.  Explonation                STRING (All field types)
  992.     The explonation text which can be up to 255 characters length
  993.     gives more information about the field than the title.
  994.  
  995.  Text Length                NUMBER (String, type and boolean)
  996.     The maximum length of the text.
  997.  
  998.  Min and Max                NUMBER (Integer and float)
  999.     The minimum and the maximum values of the field. If you don't want
  1000.     the limitation, write 'N' to the gadget and press <ENTER>, and
  1001.     there appears the text 'No Min' or 'No Max' in the gadget.  
  1002.  
  1003.  Number of Alts             NUMBER (Type, for boolean default=2)
  1004.     With this gadget you can determine the number of the alternative
  1005.     texts. There can be up to 256 alternatives, but remember that
  1006.     when the type is boolean, the number of alternatives is always
  1007.     two.
  1008.  
  1009.  Alt.Text No.               NUMBER/STRING (Type and boolean)
  1010.     Using this gadget pair you can give the alternative texts. By 
  1011.     using the number gadget select the text number. Now edit the
  1012.     corresponding alternative text in the string gadget. When you
  1013.     press <ENTER> in the string gadget, the program automatically goes
  1014.     to the next alternative text. 
  1015.  
  1016.  Unit                       STRING (Integer and float)
  1017.     The unit of a field can be, for example, the unit of the
  1018.     physical quantity, like m (metre) or kg (kilogramm).
  1019.  
  1020. 10.5. How to define a database?
  1021. -------------------------------
  1022.  
  1023.     In this chapter is told in single phases, how you can define a new
  1024. database.
  1025.    
  1026.  1. Call the Data Master (see chapter 4.1).
  1027.  2. Select the Field Editor Menuitem from the Project Menu.
  1028.  3. Type the number of the fields in the Number of Fields Gadget and
  1029.     press the <ENTER> key. Now there is the first field of the data-
  1030.     base on the screen and you can start editing it as below is
  1031.     advised.
  1032.  4. Select the type of the field with the Type Gadget. The possible
  1033.     types are, like earlier, titled 'String', 'Integer', 'Float',
  1034.     'Type' and 'Boolean'. 
  1035.  5. Enter the field title in the Title Gadget and press <ENTER>
  1036.  6. Write the field explonation in the Explonation Gadget and press
  1037.     <ENTER>.
  1038.  7. If the type is string, set the maximum length of the field data
  1039.     by using the Text Length Gadget.
  1040.  8. If the type is integer or float, ...
  1041.     8.1. Write the minimum and the maximum values in gadgets Min and
  1042.          Max and confirm with the <ENTER>. If you don't want the
  1043.          limitation, type 'N' in the gadget. Now on this gadget
  1044.          appears a text 'No Min' or 'No Max'.
  1045.     8.2. Type the field unit in the Unit Gadget.
  1046.  9. If the type is type or boolean, ...
  1047.     9.1. Set the maximum length of one piece of text with the Text
  1048.          Length Gadget.
  1049.     9.2. Determine the number of the alternatives by using the Number
  1050.          of Alts Gadget if the field type is type. 
  1051.     9.3. Select one of the alternative texts with the Alt.Text No
  1052.          Gadget.
  1053.     9.4. Write the respective text in the string gadget at the right
  1054.          side of the Alt.Text No Gadget and press the <ENTER> key.
  1055.     9.5. Move to the next alternative text (go back to section 9.3),
  1056.          until all texts are given.
  1057.  10. Select the next field with the Field Gadget, and go to section 4.
  1058.  11. After you have defined all fields correctly (remember to confirm
  1059.      definitions with the <ENTER> key), select the OK Menuitem from
  1060.      the Project Menu, and the program returns to the main program.
  1061.  12. Now the program asks for the estimated number of records, and 
  1062.      then the program allocates memory for these.
  1063.  13. If there wasn't enough memory, the program returns to the section
  1064.      12.
  1065.  14. If there was an old database before calling the Editor, the
  1066.      program asks if you want to copy the old database to the new
  1067.      database. If you don't want or if there wasn't any old database, 
  1068.      jump to the section 16.
  1069.  15. Now you are asked if you want that the program copies the old
  1070.      database to the new one considering the field titles. If you
  1071.      answer negatively, this is done so that the data of the old field
  1072.      number x is copied to the new field number x. Otherwise, the 
  1073.      program copies only those fields that have same titles in both,
  1074.      old and new, databases.
  1075.  16. Now the definitions should be ready, and you can start to edit
  1076.      the records itselves...
  1077.  
  1078. 10.6. How to change the definitions?
  1079. ------------------------------------
  1080.  
  1081. 10.6.1. Basics
  1082. - - - - - - - -
  1083.  
  1084.     It is usual that when the user have defined and edited a database,
  1085. it becomes necessary to change the field definitions or the order of
  1086. the fields.
  1087.     If you want to change the definitions, you have to at first load
  1088. the database in question. After this, call the Field Editor and change
  1089. the field definitions as explained in this chapter earlier. When you
  1090. have finished changing, return to the main program by selecting the OK
  1091. Menuitem.
  1092.     Now the program asks for the number of records; use the same
  1093. number as used with the old database. After this you are asked if you
  1094. want to keep the data of the old database; answer positively. At last
  1095. Data Master wants to know if you want to copy the fields considering
  1096. the field titles. After this question has been answered the program
  1097. proceeds the transfer of data from the old database to the new one.
  1098.  
  1099. 10.6.2. Changing field titles and limitations
  1100. - - - - - - - - - - - - - - - - - - - - - - -
  1101.  
  1102.     You can change field titles, explonations and limitatios following
  1103. the instructions on the previous part. You have to just remember that  
  1104. you should't change the order of the fields and that you have to
  1105. answer the last question negatively. With some restrictions you can
  1106. also change the type of the field so that the field data is saved
  1107. (any type -> string, integer <-> float, boolean -> type).
  1108.  
  1109. 10.6.3. Changing the order of the fields
  1110. - - - - - - - - - - - - - - - - - - - - 
  1111.  
  1112.     Also changing of the order can be made using the instructions 
  1113. explained on the part 10.6.1. This time you have to remember that you
  1114. are not permitted to change the field titles and that you have to give
  1115. a positive answer for the last question. If you want, you can also re-
  1116. move old fields or define new ones by using this same method.
  1117.  
  1118. 11. Other functions
  1119. ----------------------------------------------------------------------
  1120.  
  1121. 11.1. Settings
  1122. --------------
  1123.  
  1124.     The settings or the preferences, containing information like the
  1125. colours and the alphabets, can be changed by using the Settings
  1126. function. This function opens a window with some gadgets. These are
  1127. explained below.
  1128.     
  1129.  Alphabet                   SELECTION/STRING
  1130.     With this gadget pair you can set the alphabet. There are some
  1131.     default alphabet strings in the memory, but you can edit any of
  1132.     them so that you can sort the database made in any language
  1133.     correctly. With the selection gadget you can take any of the
  1134.     default strings to the string gadget. You can edit the current
  1135.     string by clicking on the gadget and by writing a new string. If
  1136.     you want that two letters have the same precedence, type an
  1137.     equation sign between them (like 'A=a B=b C=c ...').
  1138.  
  1139.  Colours                    PROPORTIONAL (4*3=12 gadgets)
  1140.     You can change the screen colours by using the proportional
  1141.     gadgets. There are three colour component (R=Red, G=Green and B=
  1142.     Blue) gadgets for all four colours.
  1143.  
  1144.  ShowUnit                   BOOLEAN
  1145.     If this is on, the possible unit is displayed on the main screen.
  1146.  
  1147.  ShowFNum                   BOOLEAN
  1148.     Attach the field number to the field title. 
  1149.   
  1150.  Cancel                     COMMAND
  1151.     Exit the Settings function.
  1152.  
  1153.  Use                        COMMAND
  1154.     Exit the Settings function and use new preferences.
  1155.  
  1156.  Save&Use                   COMMAND
  1157.     Exit the Settings function and save and use new preferences.
  1158.  
  1159.  Default                    COMMAND
  1160.     Return the original preferences.
  1161.  
  1162. 11.2. Edit Title Page
  1163. ---------------------
  1164.  
  1165.     The title page contains information about the database, like the
  1166. title, the author, the copyright text, the version, the first version
  1167. and if given the comment. This page is used by the showing and
  1168. printing functions if the Database Title Flag is on.    
  1169.     You can change this data by selecting the Edit Title Page Menu-
  1170. item. This function opens a window which is familiar with the window
  1171. used by the Edit Search Criteria function. When you have entered all
  1172. data, press the OK gadget. If you want to restore the old data, press
  1173. the Cancel gadget.
  1174.  
  1175. 11.3. Edit Explonation Page
  1176. ---------------------------
  1177.  
  1178.     Normally the field explonations are given already in the Field
  1179. Editor, but if you want, you can edit them afterwards by using the
  1180. Edit Explonation Page function.
  1181.     Also this function uses same kind of window like the Edit Search
  1182. Criteria function, so this is enough about this function.
  1183.  
  1184. 11.4. Reset
  1185. -----------
  1186.   
  1187.     If you want to clear all system (Data Master, not AmigaDOS)
  1188. variables, call the Reset function. For example, after the use of the
  1189. function the first record becomes the current record and the first
  1190. field of it becomes the current field. The function also redraws the
  1191. screen, so it's useful to call this function if something have messed
  1192. the screen.
  1193.  
  1194. 11.5. Status
  1195. ------------
  1196.  
  1197.     This command opens a window which is used to display some system
  1198. variables, like the number of records, the current record and the
  1199. block status.
  1200.  
  1201. 11.6. Set Main Field
  1202. --------------------
  1203.  
  1204.     With this menu command you can set for the main field any one of
  1205. the fields. The main field differs from the others on the screen in
  1206. the fact that the field title is underlined. The purpose of the main
  1207. field is that, that the record can be recognized by the main field. 
  1208.  
  1209.  
  1210. Appendices
  1211. ----------------------------------------------------------------------
  1212.  
  1213. Appendix 1 - Gadgets and Menus in the main program
  1214. --------------------------------------------------
  1215.  
  1216.   The Arrow Gadgets
  1217.   - - - - - - - - - 
  1218.   |<    the Numeric Keypad 7  - Go to the first record
  1219.   <<                          - Rewind
  1220.   <                     NK 4  - Go to the previous record
  1221.   <>                    NK 5  - Asks where to go
  1222.   >                     NK 6  - Go to the next record
  1223.   >>                          - Forward
  1224.   >|                    NK 1  - Go to the last record
  1225.   H                     NK 9  - Go to the first field      
  1226.   U      Cursor Key Up, NK 8  - Go to the previous field 
  1227.   D    Cursor Key Down, NK 2  - Go to the next field 
  1228.   E                     NK 3  - Go to the last field      
  1229.   
  1230.  
  1231.  The Project Menu
  1232.  - - - - - - - - -
  1233.  New Database               n - Open a new database
  1234.  Load Database              l - Load the database from the disk drive
  1235.  Save Database              s - Save the database with the old name
  1236.  Save As                    a - Save the database with the new name
  1237.  Field Editor               f - Call the Field Editor
  1238.  Settings                   p - Change the program preferences
  1239.  Help                       y - Show this text
  1240.  About                      A - Tell about the program and the author
  1241.  Quit                <ESC>, q - Exit the program  
  1242.  
  1243.  The Edit Menu
  1244.  - - - - - - -
  1245.  Insert                     i - Insert a new record
  1246.  Delete                     d - Delete the current record
  1247.  Change                     h - Change the places of two records
  1248.  Move                       m - Move the current record to a new
  1249.                                 position
  1250.  Copy                       c - Copy the record data to another record
  1251.  Clear                      j - Clear the record
  1252.  Number of Records          U - Change the Number of the Records
  1253.  Delete Unedited Records    E - Delete the unused/unedited records
  1254.  
  1255.  The Block Menu
  1256.  - - - - - - - -
  1257.  Mark Block                 b - Set the block begin/end
  1258.  Unmark Block               B - Unset the block
  1259.  Delete Block               D - Delete the block records
  1260.  Change Block               H - Change the block with another one
  1261.  Move Block                 M - Move the block to a new position
  1262.  Copy Block                 C - Copy the block records to another
  1263.                                 block
  1264.  Clear Block                J - Clear the block records
  1265.  
  1266.  The Search Menu
  1267.  - - - - - - - - 
  1268.  Search String              S - Search for a string
  1269.  Search Next String         N - Go to the next string searched earlier
  1270.  Edit Search Criteria       e - Change the search criteria
  1271.  Show Matching Records      r - Show only the matching records (or 
  1272.                                 'Show all records', a switch item)
  1273.  Check Again                R - Check the matching records again
  1274.  Inverse Search Criteria    v - Inverse the search criteria 
  1275.  Delete Unmatching Records  u - Delete the unmatching records
  1276.  
  1277.  The Show Menu
  1278.  - - - - - - -
  1279.  Print                      P - Print the database for the printer
  1280.  Show                       o - Show the database on the screen
  1281.  Save ASCII                 V - Save the database as an ASCII file
  1282.  Diagram                    g - Compare records graphically
  1283.  Form Editor                G - Call the Form Editor
  1284.  
  1285.  The Special Menu
  1286.  - - - - - - - - -
  1287.  Set Key Fields             F - Set the key fields for sorting
  1288.  Sort Incremental           z - Sort the records in alphabetic order
  1289.  Sort Decremental           Z - Sort the records in inversed alpha-
  1290.                                 betic order
  1291.  Edit Title Page            t - Edit the title page
  1292.  Edit Explonation Page      x - Edit the field explonations
  1293.  Show Field Explonation     X - Show the field explonation
  1294.  Set Main Field             k - Set the main field
  1295.  Set Step Size              T - Set the step size exponent (for
  1296.                                 example, give 2, step size = 10e2=100)
  1297.  Status                     w - Show the program status
  1298.  Reset                      W - Reset the program
  1299.  
  1300. Appendix 2 - Gadgets and Menus in the Field Editor
  1301. --------------------------------------------------
  1302.   
  1303.  The Project Menu
  1304.  - - - - - - -
  1305.  Load                       l - Load the field definitions file
  1306.  Save                       s - Save the field definitions with the
  1307.                                 old name
  1308.  Save As                    a - Save the field definitions with the
  1309.                                 new name
  1310.  Show Fields                o - Show the fields as a list
  1311.  Help                       y - Give help about the Editor
  1312.  OK                         O - OK with the definitions and exit to
  1313.                                 the main program
  1314.  Cancel                     C - Cancel the definitions and exit
  1315.  
  1316.  The Edit Menu
  1317.  - - - - - - -
  1318.  Insert                     i - Insert a new field
  1319.  Delete                     d - Delete the current field
  1320.  Change                     h - Change the places of two fields
  1321.  Move                       m - Move the current field to a new place
  1322.  Copy                       c - Copy the definitions of the current
  1323.                                 field to another field
  1324.  Clear                      j - Clear the definitions of the current 
  1325.                                 field
  1326.  Clear All                  J - Clear all field definitions
  1327.  Sort Incremental           z - Sort the fields in alphabetic order
  1328.  Sort Decremental           Z - Sort the fields in inversed alphabetic
  1329.                                 order
  1330.  
  1331.  Gadgets in the message window
  1332.  - - - - - - - - - - - - - - -
  1333.  Number of Flds               - The number of the fields
  1334.  Field                        - The current field whose definitions
  1335.                                 are displayed on the definition window
  1336.  
  1337.  Gadgets in the definition window
  1338.  - - - - - - - - - - - - - - - - -
  1339.  Type                         - The field type (String, Integer,
  1340.                                 Float, Type or Boolean)
  1341.  Title                        - The field title (max. 13 characters)
  1342.  Explonation                  - The field explonations
  1343.  Text Length                  - The maximum length of text with 
  1344.                                 string, type and boolean fields
  1345.  Min                          - The minimum value of a number field
  1346.  Max                          - The maximum value of a number field
  1347.  Number of Alts               - The number of alternative texts
  1348.  Alt. Text No.                - The alternative text number
  1349.  Unit                         - The unit of a number field
  1350.  
  1351. Appendix 3 - Gadgets in the file functions 
  1352. ------------------------------------------
  1353.  
  1354.  Directory                    - The open drawer
  1355.  File                         - The selected file
  1356.  Parent                     p - Return one drawer back in the root
  1357.                                 directory
  1358.  Cancel                 <ESC> - Exit without any operations
  1359.  Load/Save            <ENTER> - Alternatively load or save
  1360.  
  1361. Appendix 4 - Gadgets in the Edit Search Criteria, the Edit Title
  1362.              Page and the Edit Explonation Page functions
  1363. ----------------------------------------------------------------
  1364.  
  1365.  Clear                       j - Clear the current line
  1366.  ClearAll                    J - Clear all lines
  1367.  Cancel                  <ESC> - Exit canceling the changes 
  1368.  OK                          O - Exit 
  1369.  
  1370. Appendix 5 - The Print, the Show and the Save ASCII functions
  1371. -------------------------------------------------------------
  1372.  
  1373.  First Record                  - The first record in the print-out
  1374.  Last Record                   - The last record in the print-out
  1375.  First Field                   - The first field in the print-out 
  1376.  Last Field                    - The last field in the print-out
  1377.  Space Record                  - The number of empty lines between
  1378.                                  records
  1379.  Space Field                   - The number of empty lines between
  1380.                                  fields
  1381.  Max Length                    - The maximum length of the field title
  1382.                                  and explonation
  1383.  Max Title Len                 - The maximum length of the field title
  1384.  Field Title                   - Show the field title in the print-out
  1385.  Field Unit                    - Attach the unit to the field data
  1386.  Field Number                  - Attach the field number to the title
  1387.  Record Title                  - Show the record title 
  1388.  Database Title                - Show the title page
  1389.  Database Explonation          - Show the field explonations 
  1390.  Cancel                  <ESC> - Exit without any operations
  1391.  OK                    <ENTER> - Print, show or save the database
  1392.  
  1393. Appendix 6 - Gadgets in the Diagram function
  1394. --------------------------------------------
  1395.  
  1396.  Min                           - The minimum value of the scale
  1397.  Max                           - The maximum value of the scale
  1398.  Step Size                     - The step size of the scale
  1399.  Title Length                  - The maximum length of the record
  1400.                                  title
  1401.  Field                         - The field used in comparision (only
  1402.                                  number fields)
  1403.  Sort                        z - Sort the records 
  1404.  AddNumbs                      - Display the field values as numbers
  1405.                                  too
  1406.  
  1407. Appendix 7 - Gadgets in the Settings function 
  1408. ---------------------------------------------
  1409.  
  1410.  Alphabet                      - The language of alphabet and the 
  1411.                                  alphabet string
  1412.  Colours                       - The colour gadgets
  1413.  Cancel                  <ESC> - Exit without any operations
  1414.  Use                         O - Exit and use new settings
  1415.  Save&Use              <ENTER> - Exit, and save and use new settings
  1416.  Default                     d - Return the default settings
  1417.  ShowUnit                      - Attach the unit to the field data
  1418.  ShowFNum                      - Attach the field number to the title
  1419.  
  1420. Appendix 8 - Gadgets and Menus in the Form Editor
  1421. -------------------------------------------------
  1422.  
  1423.  The Project Menu
  1424.  - - - - - - - - -
  1425.  Print                       P - Print the database for the printer
  1426.  Show                        o - Show the database on the screen
  1427.  Save ASCII                  V - Save the database as an ASCII file
  1428.  Load Form Data              a - Load the form data file
  1429.  Save Form Data              A - Save the form data to the disk
  1430.  Exit                        q - Exit the Editor
  1431.  
  1432.  The Flags Menu
  1433.  - - - - - -
  1434.  Field Unit                  u - Attach the unit to the field data
  1435.  Field Number                n - Attach the field number to the title
  1436.  Database Title              t - Show the database title
  1437.  Database Explonation        e - Show the field explonations
  1438.  Split Words                 s - Allow the program to split words on
  1439.                                  two lines
  1440.  Delete Empty Lines          d - Delete empty lines from the print-out
  1441.  Field Titles Before Recs    b - The field titles are showed only
  1442.                                  once and before the records 
  1443.  Set First Record            f - Set the first record
  1444.  Set Last Record             l - Set the last record
  1445.  Set Record Space            c - Set the number of empty lines between
  1446.                                  records
  1447.  
  1448.  Gadgets
  1449.  - - - -
  1450.  Field                         - The current field
  1451.  X, Y                          - The coordinates of the field data
  1452.  Width                         - The width of the field data
  1453.  Height                        - The height of the field data 
  1454.  TitleX, TitleY                - The coordinates of the field title
  1455.  TitleLength                   - The length of the field title
  1456.  
  1457.  
  1458. Table of Contents
  1459. ----------------------------------------------------------------------
  1460.  
  1461. 1. What is Data Master
  1462.    1.1. Data Master
  1463.    1.2. Amiga system
  1464. 2. Database Terms
  1465.    2.1. Basics
  1466.    2.2. Field types
  1467.    2.3. Main field and key fields
  1468.    2.4. Field title, explonation and data
  1469. 3. The user interface
  1470.    3.1. The screen
  1471.    3.2. The message window
  1472.    3.3. Gadgets of the message window
  1473. 4. Getting started
  1474.    4.1. Running the program
  1475.    4.2. Testing 
  1476. 5. Editing the field data
  1477.    5.1. Basics
  1478.    5.2. String field
  1479.    5.3. Integer and float fields
  1480.    5.4. Type and boolean fields
  1481. 6. Handling records
  1482.    6.1. Basics
  1483.    6.2. Insert
  1484.    6.3. Delete
  1485.    6.4. Change
  1486.    6.5. Move
  1487.    6.6. Copy
  1488.    6.7. Clear
  1489.    6.8. Number of Records
  1490.    6.9. Delete Unedited Records
  1491.    6.10. The Block Menu
  1492. 7. Sorting and searching
  1493.    7.1. Sorting
  1494.    7.2. Searching for the specified record
  1495.         7.2.1. Edit Search Criteria (Filter)
  1496.         7.2.2. The search criteria of string, type and boolean fields
  1497.         7.2.3. The search criteria of integer and float fields
  1498.         7.2.4. Searching functions
  1499.    7.3. Searching for a text string
  1500. 8. Disk operations
  1501.    8.1. File formats
  1502.    8.2. Load Database
  1503.    8.3. Save Database
  1504. 9. Printing
  1505.    9.1. Show
  1506.    9.2. Print
  1507.    9.3. Save ASCII
  1508.    9.4. Diagram
  1509.    9.5. Form Editor
  1510.         9.5.1. The screen
  1511.         9.5.2. Placing the field in the form
  1512.         9.5.3. Flags
  1513.         9.5.4. The Project Menu
  1514. 10. Field Editor
  1515.    10.1. Basics
  1516.    10.2. The screen and the message window
  1517.    10.3. Menu commands
  1518.    10.4. The definition window
  1519.    10.5. How to define a database?
  1520.    10.6. How to change the definitions
  1521.          10.6.1. Basics
  1522.          10.6.2. Changing field titles and limitations
  1523.          10.6.3. Changing the order of the fields
  1524. 11. Other functions
  1525.    11.1. Settings
  1526.    11.2. Edit Title Page
  1527.    11.3. Edit Explonation Page
  1528.    11.4. Reset
  1529.    11.5. Status
  1530.    11.6. Set Main Field
  1531. Appendices
  1532.    Appendix 1 - Gadgets and Menus in the main program
  1533.    Appendix 2 - Gadgets and Menus in the Field Editor
  1534.    Appendix 3 - Gadgets in the file functions
  1535.    Appendix 4 - Gadgets in the Edit Search Criteria, the Edit Title
  1536.                 Page and the Edit Explonation Page functions
  1537.    Appendix 5 - The Print, the Show and the Save ASCII functions
  1538.    Appendix 6 - Gadgets in the Diagram function
  1539.    Appendix 7 - Gadgets in the Settings function
  1540.    Appendix 8 - Gadgets and Menus in the Form Editor 
  1541. Table of Contents 
  1542.  
  1543.  
  1544.